Skip to content

Fix bare except clauses in supervisor/xmlrpc.py#1722

Open
koteshyelamati wants to merge 1 commit into
Supervisor:mainfrom
koteshyelamati:main
Open

Fix bare except clauses in supervisor/xmlrpc.py#1722
koteshyelamati wants to merge 1 commit into
Supervisor:mainfrom
koteshyelamati:main

Conversation

@koteshyelamati

Copy link
Copy Markdown

Replace bare except: clauses with specific exception types in supervisor/xmlrpc.py.

Bare except: catches BaseException including SystemExit, KeyboardInterrupt, and GeneratorExit, which is almost never intentional. Using except Exception: restricts catching to non-system-exit exceptions.

Changes:

  • Line 90: except:except Exception: (XML-RPC response callback)
  • Line 250: except:except Exception: (RPC method dispatch)
  • Line 279: except:except Exception: (multicall dispatch)
  • Line 386: except:except Exception: (XML-RPC request unmarshalling)
  • Line 436: except:except Exception: (additional handler)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant